<!DOCTYPE HTML>
<html lang="ru">
<head>
<!-- Generated by javadoc (17) -->
<title>DesktopEntryBuilder (org.panteleyev:freedesktop 0.5.1 API)</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="description" content="declaration: module: org.panteleyev.freedesktop, package: org.panteleyev.freedesktop.entry, class: DesktopEntryBuilder">
<meta name="generator" content="javadoc/ClassWriterImpl">
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
<link rel="stylesheet" type="text/css" href="../../../../../script-dir/jquery-ui.min.css" title="Style">
<link rel="stylesheet" type="text/css" href="../../../../../jquery-ui.overrides.css" title="Style">
<script type="text/javascript" src="../../../../../script.js"></script>
<script type="text/javascript" src="../../../../../script-dir/jquery-3.5.1.min.js"></script>
<script type="text/javascript" src="../../../../../script-dir/jquery-ui.min.js"></script>
</head>
<body class="class-declaration-page">
<script type="text/javascript">var evenRowColor = "even-row-color";
var oddRowColor = "odd-row-color";
var tableTab = "table-tab";
var activeTableTab = "active-table-tab";
var pathtoroot = "../../../../../";
loadScripts(document, 'script');</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<div class="flex-box">
<header role="banner" class="flex-header">
<nav role="navigation">
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="top-nav" id="navbar-top">
<div class="skip-nav"><a href="#skip-navbar-top" title="Skip navigation links">Skip navigation links</a></div>
<ul id="navbar-top-firstrow" class="nav-list" title="Navigation">
<li><a href="../../../../module-summary.html">Module</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="nav-bar-cell1-rev">Class</li>
<li><a href="class-use/DesktopEntryBuilder.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../help-doc.html#class">Help</a></li>
</ul>
</div>
<div class="sub-nav">
<div>
<ul class="sub-nav-list">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li><a href="#field-summary">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor-summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method-summary">Method</a></li>
</ul>
<ul class="sub-nav-list">
<li>Detail:&nbsp;</li>
<li><a href="#field-detail">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor-detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method-detail">Method</a></li>
</ul>
</div>
<div class="nav-list-search"><label for="search-input">SEARCH:</label>
<input type="text" id="search-input" value="search" disabled="disabled">
<input type="reset" id="reset-button" value="reset" disabled="disabled">
</div>
</div>
<!-- ========= END OF TOP NAVBAR ========= -->
<span class="skip-nav" id="skip-navbar-top"></span></nav>
</header>
<div class="flex-content">
<main role="main">
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
<div class="sub-title"><span class="module-label-in-type">Module</span>&nbsp;<a href="../../../../module-summary.html">org.panteleyev.freedesktop</a></div>
<div class="sub-title"><span class="package-label-in-type">Package</span>&nbsp;<a href="package-summary.html">org.panteleyev.freedesktop.entry</a></div>
<h1 title="Class DesktopEntryBuilder" class="title">Class DesktopEntryBuilder</h1>
</div>
<div class="inheritance" title="Inheritance Tree"><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html" title="class or interface in java.lang" class="external-link">java.lang.Object</a>
<div class="inheritance">org.panteleyev.freedesktop.entry.DesktopEntryBuilder</div>
</div>
<section class="class-description" id="class-description">
<hr>
<div class="type-signature"><span class="modifiers">public class </span><span class="element-name type-name-label">DesktopEntryBuilder</span>
<span class="extends-implements">extends <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html" title="class or interface in java.lang" class="external-link">Object</a></span></div>
<div class="block">Implements Desktop Entry builder.
 Methods correspond to Desktop Entry attributes defined in
 <a href="https://specifications.freedesktop.org/desktop-entry-spec/desktop-entry-spec-1.5.html">freedesktop.org specification</a>.</div>
</section>
<section class="summary">
<ul class="summary-list">
<!-- =========== FIELD SUMMARY =========== -->
<li>
<section class="field-summary" id="field-summary">
<h2>Field Summary</h2>
<div class="caption"><span>Fields</span></div>
<div class="summary-table three-column-summary">
<div class="table-header col-first">Modifier and Type</div>
<div class="table-header col-second">Field</div>
<div class="table-header col-last">Description</div>
<div class="col-first even-row-color"><code>static final <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a></code></div>
<div class="col-second even-row-color"><code><a href="#VERSION_1_5" class="member-name-link">VERSION_1_5</a></code></div>
<div class="col-last even-row-color">
<div class="block">Specification version.</div>
</div>
</div>
</section>
</li>
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<li>
<section class="constructor-summary" id="constructor-summary">
<h2>Constructor Summary</h2>
<div class="caption"><span>Constructors</span></div>
<div class="summary-table two-column-summary">
<div class="table-header col-first">Constructor</div>
<div class="table-header col-last">Description</div>
<div class="col-constructor-name even-row-color"><code><a href="#%3Cinit%3E(org.panteleyev.freedesktop.entry.DesktopEntryType)" class="member-name-link">DesktopEntryBuilder</a><wbr>(<a href="DesktopEntryType.html" title="enum class in org.panteleyev.freedesktop.entry">DesktopEntryType</a>&nbsp;type)</code></div>
<div class="col-last even-row-color">
<div class="block">Creates desktop entry builder.</div>
</div>
</div>
</section>
</li>
<!-- ========== METHOD SUMMARY =========== -->
<li>
<section class="method-summary" id="method-summary">
<h2>Method Summary</h2>
<div id="method-summary-table">
<div class="table-tabs" role="tablist" aria-orientation="horizontal"><button id="method-summary-table-tab0" role="tab" aria-selected="true" aria-controls="method-summary-table.tabpanel" tabindex="0" onkeydown="switchTab(event)" onclick="show('method-summary-table', 'method-summary-table', 3)" class="active-table-tab">All Methods</button><button id="method-summary-table-tab1" role="tab" aria-selected="false" aria-controls="method-summary-table.tabpanel" tabindex="-1" onkeydown="switchTab(event)" onclick="show('method-summary-table', 'method-summary-table-tab1', 3)" class="table-tab">Static Methods</button><button id="method-summary-table-tab2" role="tab" aria-selected="false" aria-controls="method-summary-table.tabpanel" tabindex="-1" onkeydown="switchTab(event)" onclick="show('method-summary-table', 'method-summary-table-tab2', 3)" class="table-tab">Instance Methods</button><button id="method-summary-table-tab4" role="tab" aria-selected="false" aria-controls="method-summary-table.tabpanel" tabindex="-1" onkeydown="switchTab(event)" onclick="show('method-summary-table', 'method-summary-table-tab4', 3)" class="table-tab">Concrete Methods</button></div>
<div id="method-summary-table.tabpanel" role="tabpanel">
<div class="summary-table three-column-summary" aria-labelledby="method-summary-table-tab0">
<div class="table-header col-first">Modifier and Type</div>
<div class="table-header col-second">Method</div>
<div class="table-header col-last">Description</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="DesktopEntryBuilder.html" title="class in org.panteleyev.freedesktop.entry">DesktopEntryBuilder</a></code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#actions(java.util.List)" class="member-name-link">actions</a><wbr>(<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/List.html" title="class or interface in java.util" class="external-link">List</a>&lt;<a href="ApplicationAction.html" title="class in org.panteleyev.freedesktop.entry">ApplicationAction</a>&gt;&nbsp;actions)</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
<div class="block">Identifiers for application actions.</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="DesktopEntry.html" title="class in org.panteleyev.freedesktop.entry">DesktopEntry</a></code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#build()" class="member-name-link">build</a>()</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
<div class="block">Builds <a href="DesktopEntry.html" title="class in org.panteleyev.freedesktop.entry"><code>DesktopEntry</code></a> instance.</div>
</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="DesktopEntryBuilder.html" title="class in org.panteleyev.freedesktop.entry">DesktopEntryBuilder</a></code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#categories(java.util.List)" class="member-name-link">categories</a><wbr>(<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/List.html" title="class or interface in java.util" class="external-link">List</a>&lt;<a href="../menu/Category.html" title="enum class in org.panteleyev.freedesktop.menu">Category</a>&gt;&nbsp;categories)</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
<div class="block">Categories in which the entry should be shown in a menu.</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="DesktopEntryBuilder.html" title="class in org.panteleyev.freedesktop.entry">DesktopEntryBuilder</a></code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#comment(java.lang.CharSequence)" class="member-name-link">comment</a><wbr>(<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/CharSequence.html" title="class or interface in java.lang" class="external-link">CharSequence</a>&nbsp;comment)</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
<div class="block">Tooltip for the entry, for example &quot;View sites on the Internet&quot;.</div>
</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="DesktopEntryBuilder.html" title="class in org.panteleyev.freedesktop.entry">DesktopEntryBuilder</a></code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#customEntry(java.lang.String,java.lang.CharSequence)" class="member-name-link">customEntry</a><wbr>(<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;key,
 <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/CharSequence.html" title="class or interface in java.lang" class="external-link">CharSequence</a>&nbsp;value)</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
<div class="block">Custom entry not defined in the specification.</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="DesktopEntryBuilder.html" title="class in org.panteleyev.freedesktop.entry">DesktopEntryBuilder</a></code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#dBusActivatable(boolean)" class="member-name-link">dBusActivatable</a><wbr>(boolean&nbsp;dBusActivatable)</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
<div class="block">A boolean value specifying if D-Bus activation is supported for this application.</div>
</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="DesktopEntryBuilder.html" title="class in org.panteleyev.freedesktop.entry">DesktopEntryBuilder</a></code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#exec(java.lang.String)" class="member-name-link">exec</a><wbr>(<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;exec)</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
<div class="block">Program to execute, possibly with arguments.</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="DesktopEntryBuilder.html" title="class in org.panteleyev.freedesktop.entry">DesktopEntryBuilder</a></code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#genericName(java.lang.CharSequence)" class="member-name-link">genericName</a><wbr>(<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/CharSequence.html" title="class or interface in java.lang" class="external-link">CharSequence</a>&nbsp;name)</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
<div class="block">Generic name of the application, for example &quot;Web Browser&quot;.</div>
</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="DesktopEntryBuilder.html" title="class in org.panteleyev.freedesktop.entry">DesktopEntryBuilder</a></code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#hidden(boolean)" class="member-name-link">hidden</a><wbr>(boolean&nbsp;hidden)</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
<div class="block">Hidden.</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="DesktopEntryBuilder.html" title="class in org.panteleyev.freedesktop.entry">DesktopEntryBuilder</a></code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#icon(java.lang.CharSequence)" class="member-name-link">icon</a><wbr>(<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/CharSequence.html" title="class or interface in java.lang" class="external-link">CharSequence</a>&nbsp;icon)</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
<div class="block">Icon to display in file manager, menus, etc.</div>
</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="DesktopEntryBuilder.html" title="class in org.panteleyev.freedesktop.entry">DesktopEntryBuilder</a></code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#interfaces(java.util.List)" class="member-name-link">interfaces</a><wbr>(<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/List.html" title="class or interface in java.util" class="external-link">List</a>&lt;<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&gt;&nbsp;interfaces)</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
<div class="block">A list of interfaces that this application implements.</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="DesktopEntryBuilder.html" title="class in org.panteleyev.freedesktop.entry">DesktopEntryBuilder</a></code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#keywords(java.util.List)" class="member-name-link">keywords</a><wbr>(<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/List.html" title="class or interface in java.util" class="external-link">List</a>&lt;<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&gt;&nbsp;keywords)</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
<div class="block">A list of strings which may be used in addition to other metadata to describe this entry.</div>
</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="DesktopEntryBuilder.html" title="class in org.panteleyev.freedesktop.entry">DesktopEntryBuilder</a></code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#keywords(java.util.List,java.lang.String)" class="member-name-link">keywords</a><wbr>(<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/List.html" title="class or interface in java.util" class="external-link">List</a>&lt;<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&gt;&nbsp;keywords,
 <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;locale)</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
<div class="block">A list of strings which may be used in addition to other metadata to describe this entry.</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/CharSequence.html" title="class or interface in java.lang" class="external-link">CharSequence</a></code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#localeString(java.lang.String,java.lang.String)" class="member-name-link">localeString</a><wbr>(<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;value,
 <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;locale)</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
<div class="block">Creates string with locale.</div>
</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="DesktopEntryBuilder.html" title="class in org.panteleyev.freedesktop.entry">DesktopEntryBuilder</a></code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#mimeType(java.util.List)" class="member-name-link">mimeType</a><wbr>(<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/List.html" title="class or interface in java.util" class="external-link">List</a>&lt;<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&gt;&nbsp;mimeType)</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
<div class="block">The MIME type(s) supported by this application.</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="DesktopEntryBuilder.html" title="class in org.panteleyev.freedesktop.entry">DesktopEntryBuilder</a></code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#name(java.lang.CharSequence)" class="member-name-link">name</a><wbr>(<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/CharSequence.html" title="class or interface in java.lang" class="external-link">CharSequence</a>&nbsp;name)</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
<div class="block">Specific name of the application, for example &quot;Mozilla&quot;.</div>
</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="DesktopEntryBuilder.html" title="class in org.panteleyev.freedesktop.entry">DesktopEntryBuilder</a></code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#noDisplay(boolean)" class="member-name-link">noDisplay</a><wbr>(boolean&nbsp;noDisplay)</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
<div class="block">NoDisplay means &quot;this application exists, but don't display it in the menus&quot;.</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="DesktopEntryBuilder.html" title="class in org.panteleyev.freedesktop.entry">DesktopEntryBuilder</a></code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#notShowIn(java.util.Set)" class="member-name-link">notShowIn</a><wbr>(<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/Set.html" title="class or interface in java.util" class="external-link">Set</a>&lt;<a href="../menu/OnlyShowInEnvironment.html" title="enum class in org.panteleyev.freedesktop.menu">OnlyShowInEnvironment</a>&gt;&nbsp;notShowIn)</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
<div class="block">A list of strings identifying the environments that should not display a given desktop entry.</div>
</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="DesktopEntryBuilder.html" title="class in org.panteleyev.freedesktop.entry">DesktopEntryBuilder</a></code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#onlyShowIn(java.util.Set)" class="member-name-link">onlyShowIn</a><wbr>(<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/Set.html" title="class or interface in java.util" class="external-link">Set</a>&lt;<a href="../menu/OnlyShowInEnvironment.html" title="enum class in org.panteleyev.freedesktop.menu">OnlyShowInEnvironment</a>&gt;&nbsp;onlyShowIn)</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
<div class="block">A list of strings identifying the environments that should display a given desktop entry.</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="DesktopEntryBuilder.html" title="class in org.panteleyev.freedesktop.entry">DesktopEntryBuilder</a></code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#path(java.lang.String)" class="member-name-link">path</a><wbr>(<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;path)</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
<div class="block">If entry is of type Application, the working directory to run the program in.</div>
</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="DesktopEntryBuilder.html" title="class in org.panteleyev.freedesktop.entry">DesktopEntryBuilder</a></code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#prefersNonDefaultGpu(boolean)" class="member-name-link">prefersNonDefaultGpu</a><wbr>(boolean&nbsp;prefersNonDefaultGpu)</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
<div class="block">If true, the application prefers to be run on a more powerful discrete GPU if available, which we describe as
 &quot;a GPU other than the default one&quot; in this spec to avoid the need to define what a discrete GPU is and
 in which cases it might be considered more powerful than the default GPU.</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="DesktopEntryBuilder.html" title="class in org.panteleyev.freedesktop.entry">DesktopEntryBuilder</a></code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#singleMainWindow(boolean)" class="member-name-link">singleMainWindow</a><wbr>(boolean&nbsp;singleMainWindow)</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
<div class="block">If true, the application has a single main window, and does not support having an additional one opened.</div>
</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="DesktopEntryBuilder.html" title="class in org.panteleyev.freedesktop.entry">DesktopEntryBuilder</a></code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#startupNotify(boolean)" class="member-name-link">startupNotify</a><wbr>(boolean&nbsp;startupNotify)</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
<div class="block">If true, it is KNOWN that the application will send a &quot;remove&quot; message when started with the
 DESKTOP_STARTUP_ID environment variable set.</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="DesktopEntryBuilder.html" title="class in org.panteleyev.freedesktop.entry">DesktopEntryBuilder</a></code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#startupWmClass(java.lang.String)" class="member-name-link">startupWmClass</a><wbr>(<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;startupWmClass)</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
<div class="block">If specified, it is known that the application will map at least one window with the given string as its WM
 class or WM name hint (see the
 <a href="https://www.freedesktop.org/wiki/Specifications/startup-notification-spec/">Startup Notification Protocol Specification</a>
 for more details).</div>
</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="DesktopEntryBuilder.html" title="class in org.panteleyev.freedesktop.entry">DesktopEntryBuilder</a></code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#terminal(boolean)" class="member-name-link">terminal</a><wbr>(boolean&nbsp;terminal)</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
<div class="block">Whether the program runs in a terminal window.</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="DesktopEntryBuilder.html" title="class in org.panteleyev.freedesktop.entry">DesktopEntryBuilder</a></code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#tryExec(java.lang.String)" class="member-name-link">tryExec</a><wbr>(<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;tryExec)</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
<div class="block">Path to an executable file on disk used to determine if the program is actually installed.</div>
</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="DesktopEntryBuilder.html" title="class in org.panteleyev.freedesktop.entry">DesktopEntryBuilder</a></code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#url(java.lang.String)" class="member-name-link">url</a><wbr>(<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;url)</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
<div class="block">If entry is <a href="DesktopEntryType.html#LINK"><code>DesktopEntryType.LINK</code></a> type, the URL to access.</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="DesktopEntryBuilder.html" title="class in org.panteleyev.freedesktop.entry">DesktopEntryBuilder</a></code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#version(java.lang.String)" class="member-name-link">version</a><wbr>(<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;version)</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
<div class="block">Version of the Desktop Entry Specification that the desktop entry conforms with.</div>
</div>
</div>
</div>
</div>
<div class="inherited-list">
<h3 id="methods-inherited-from-class-java.lang.Object">Methods inherited from class&nbsp;java.lang.<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html" title="class or interface in java.lang" class="external-link">Object</a></h3>
<code><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#clone()" title="class or interface in java.lang" class="external-link">clone</a>, <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)" title="class or interface in java.lang" class="external-link">equals</a>, <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#finalize()" title="class or interface in java.lang" class="external-link">finalize</a>, <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#getClass()" title="class or interface in java.lang" class="external-link">getClass</a>, <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#hashCode()" title="class or interface in java.lang" class="external-link">hashCode</a>, <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#notify()" title="class or interface in java.lang" class="external-link">notify</a>, <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#notifyAll()" title="class or interface in java.lang" class="external-link">notifyAll</a>, <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#toString()" title="class or interface in java.lang" class="external-link">toString</a>, <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#wait()" title="class or interface in java.lang" class="external-link">wait</a>, <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#wait(long)" title="class or interface in java.lang" class="external-link">wait</a>, <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#wait(long,int)" title="class or interface in java.lang" class="external-link">wait</a></code></div>
</section>
</li>
</ul>
</section>
<section class="details">
<ul class="details-list">
<!-- ============ FIELD DETAIL =========== -->
<li>
<section class="field-details" id="field-detail">
<h2>Field Details</h2>
<ul class="member-list">
<li>
<section class="detail" id="VERSION_1_5">
<h3>VERSION_1_5</h3>
<div class="member-signature"><span class="modifiers">public static final</span>&nbsp;<span class="return-type"><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a></span>&nbsp;<span class="element-name">VERSION_1_5</span></div>
<div class="block">Specification version.</div>
<dl class="notes">
<dt>See Also:</dt>
<dd>
<ul class="see-list">
<li><a href="../../../../../constant-values.html#org.panteleyev.freedesktop.entry.DesktopEntryBuilder.VERSION_1_5">Constant Field Values</a></li>
</ul>
</dd>
</dl>
</section>
</li>
</ul>
</section>
</li>
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<li>
<section class="constructor-details" id="constructor-detail">
<h2>Constructor Details</h2>
<ul class="member-list">
<li>
<section class="detail" id="&lt;init&gt;(org.panteleyev.freedesktop.entry.DesktopEntryType)">
<h3>DesktopEntryBuilder</h3>
<div class="member-signature"><span class="modifiers">public</span>&nbsp;<span class="element-name">DesktopEntryBuilder</span><wbr><span class="parameters">(<a href="DesktopEntryType.html" title="enum class in org.panteleyev.freedesktop.entry">DesktopEntryType</a>&nbsp;type)</span></div>
<div class="block">Creates desktop entry builder.</div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>type</code> - Desktop Entry type</dd>
</dl>
</section>
</li>
</ul>
</section>
</li>
<!-- ============ METHOD DETAIL ========== -->
<li>
<section class="method-details" id="method-detail">
<h2>Method Details</h2>
<ul class="member-list">
<li>
<section class="detail" id="version(java.lang.String)">
<h3>version</h3>
<div class="member-signature"><span class="modifiers">public</span>&nbsp;<span class="return-type"><a href="DesktopEntryBuilder.html" title="class in org.panteleyev.freedesktop.entry">DesktopEntryBuilder</a></span>&nbsp;<span class="element-name">version</span><wbr><span class="parameters">(<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;version)</span></div>
<div class="block">Version of the Desktop Entry Specification that the desktop entry conforms with. Entries that confirm with
 this version of the specification should use 1.5. Note that the version field is not required to be present.</div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>version</code> - version</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="name(java.lang.CharSequence)">
<h3>name</h3>
<div class="member-signature"><span class="modifiers">public</span>&nbsp;<span class="return-type"><a href="DesktopEntryBuilder.html" title="class in org.panteleyev.freedesktop.entry">DesktopEntryBuilder</a></span>&nbsp;<span class="element-name">name</span><wbr><span class="parameters">(<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/CharSequence.html" title="class or interface in java.lang" class="external-link">CharSequence</a>&nbsp;name)</span></div>
<div class="block">Specific name of the application, for example &quot;Mozilla&quot;.</div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>name</code> - name</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="genericName(java.lang.CharSequence)">
<h3>genericName</h3>
<div class="member-signature"><span class="modifiers">public</span>&nbsp;<span class="return-type"><a href="DesktopEntryBuilder.html" title="class in org.panteleyev.freedesktop.entry">DesktopEntryBuilder</a></span>&nbsp;<span class="element-name">genericName</span><wbr><span class="parameters">(<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/CharSequence.html" title="class or interface in java.lang" class="external-link">CharSequence</a>&nbsp;name)</span></div>
<div class="block">Generic name of the application, for example &quot;Web Browser&quot;.</div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>name</code> - name</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="noDisplay(boolean)">
<h3>noDisplay</h3>
<div class="member-signature"><span class="modifiers">public</span>&nbsp;<span class="return-type"><a href="DesktopEntryBuilder.html" title="class in org.panteleyev.freedesktop.entry">DesktopEntryBuilder</a></span>&nbsp;<span class="element-name">noDisplay</span><wbr><span class="parameters">(boolean&nbsp;noDisplay)</span></div>
<div class="block">NoDisplay means &quot;this application exists, but don't display it in the menus&quot;. This can be useful to
 e.g. associate this application with MIME types, so that it gets launched from a file manager (or other apps),
 without having a menu entry for it (there are tons of good reasons for this, including e.g. the netscape
 -remote, or kfmclient openURL kind of stuff).</div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>noDisplay</code> - noDisplay value</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="comment(java.lang.CharSequence)">
<h3>comment</h3>
<div class="member-signature"><span class="modifiers">public</span>&nbsp;<span class="return-type"><a href="DesktopEntryBuilder.html" title="class in org.panteleyev.freedesktop.entry">DesktopEntryBuilder</a></span>&nbsp;<span class="element-name">comment</span><wbr><span class="parameters">(<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/CharSequence.html" title="class or interface in java.lang" class="external-link">CharSequence</a>&nbsp;comment)</span></div>
<div class="block">Tooltip for the entry, for example &quot;View sites on the Internet&quot;. The value should not be redundant
 with the values of Name and GenericName.</div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>comment</code> - comment</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="icon(java.lang.CharSequence)">
<h3>icon</h3>
<div class="member-signature"><span class="modifiers">public</span>&nbsp;<span class="return-type"><a href="DesktopEntryBuilder.html" title="class in org.panteleyev.freedesktop.entry">DesktopEntryBuilder</a></span>&nbsp;<span class="element-name">icon</span><wbr><span class="parameters">(<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/CharSequence.html" title="class or interface in java.lang" class="external-link">CharSequence</a>&nbsp;icon)</span></div>
<div class="block">Icon to display in file manager, menus, etc. If the name is an absolute path, the given file will be used. If
 the name is not an absolute path, the algorithm described in the
 <a href="https://freedesktop.org/wiki/Specifications/icon-theme-spec/">Icon Theme Specification</a> will be used
 to locate the icon.</div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>icon</code> - Icon value</dd>
<dt>Returns:</dt>
<dd>this</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="hidden(boolean)">
<h3>hidden</h3>
<div class="member-signature"><span class="modifiers">public</span>&nbsp;<span class="return-type"><a href="DesktopEntryBuilder.html" title="class in org.panteleyev.freedesktop.entry">DesktopEntryBuilder</a></span>&nbsp;<span class="element-name">hidden</span><wbr><span class="parameters">(boolean&nbsp;hidden)</span></div>
<div class="block">Hidden. Hidden means the user deleted (at his level) something that was present
 (at an upper level, e.g. in the system dirs). It's strictly equivalent to the .desktop file not existing at
 all, as far as that user is concerned. This can also be used to &quot;uninstall&quot; existing files (e.g. due
 to a renaming) - by letting <code>make install</code> install a file with <code>Hidden=true</code> in it.</div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>hidden</code> - Hidden value</dd>
<dt>Returns:</dt>
<dd>this</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="onlyShowIn(java.util.Set)">
<h3>onlyShowIn</h3>
<div class="member-signature"><span class="modifiers">public</span>&nbsp;<span class="return-type"><a href="DesktopEntryBuilder.html" title="class in org.panteleyev.freedesktop.entry">DesktopEntryBuilder</a></span>&nbsp;<span class="element-name">onlyShowIn</span><wbr><span class="parameters">(<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/Set.html" title="class or interface in java.util" class="external-link">Set</a>&lt;<a href="../menu/OnlyShowInEnvironment.html" title="enum class in org.panteleyev.freedesktop.menu">OnlyShowInEnvironment</a>&gt;&nbsp;onlyShowIn)</span></div>
<div class="block">A list of strings identifying the environments that should display a given desktop entry. Only one
 of either OnlyShowIn or NotShowIn may appear in a group.</div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>onlyShowIn</code> - OnlyShowIn value</dd>
<dt>Returns:</dt>
<dd>this</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="notShowIn(java.util.Set)">
<h3>notShowIn</h3>
<div class="member-signature"><span class="modifiers">public</span>&nbsp;<span class="return-type"><a href="DesktopEntryBuilder.html" title="class in org.panteleyev.freedesktop.entry">DesktopEntryBuilder</a></span>&nbsp;<span class="element-name">notShowIn</span><wbr><span class="parameters">(<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/Set.html" title="class or interface in java.util" class="external-link">Set</a>&lt;<a href="../menu/OnlyShowInEnvironment.html" title="enum class in org.panteleyev.freedesktop.menu">OnlyShowInEnvironment</a>&gt;&nbsp;notShowIn)</span></div>
<div class="block">A list of strings identifying the environments that should not display a given desktop entry. Only one
 of either OnlyShowIn or NotShowIn may appear in a group.</div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>notShowIn</code> - NotShowIn value</dd>
<dt>Returns:</dt>
<dd>this</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="dBusActivatable(boolean)">
<h3>dBusActivatable</h3>
<div class="member-signature"><span class="modifiers">public</span>&nbsp;<span class="return-type"><a href="DesktopEntryBuilder.html" title="class in org.panteleyev.freedesktop.entry">DesktopEntryBuilder</a></span>&nbsp;<span class="element-name">dBusActivatable</span><wbr><span class="parameters">(boolean&nbsp;dBusActivatable)</span></div>
<div class="block">A boolean value specifying if D-Bus activation is supported for this application. If this key is missing, the
 default value is false. If the value is true then implementations should ignore the Exec key and send a D-Bus
 message to launch the application. See
 <a href="https://specifications.freedesktop.org/desktop-entry-spec/desktop-entry-spec-1.5.html#dbus">D-Bus Activation</a>
 for more information on how this works. Applications should still include Exec= lines in their desktop files
 for compatibility with implementations that do not understand the DBusActivatable key.</div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>dBusActivatable</code> - DBusActivatable value</dd>
<dt>Returns:</dt>
<dd>this</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="tryExec(java.lang.String)">
<h3>tryExec</h3>
<div class="member-signature"><span class="modifiers">public</span>&nbsp;<span class="return-type"><a href="DesktopEntryBuilder.html" title="class in org.panteleyev.freedesktop.entry">DesktopEntryBuilder</a></span>&nbsp;<span class="element-name">tryExec</span><wbr><span class="parameters">(<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;tryExec)</span></div>
<div class="block">Path to an executable file on disk used to determine if the program is actually installed. If the path is not
 an absolute path, the file is looked up in the $PATH environment variable. If the file is not present or if it
 is not executable, the entry may be ignored (not be used in menus, for example).</div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>tryExec</code> - TryExec value</dd>
<dt>Returns:</dt>
<dd>this</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="exec(java.lang.String)">
<h3>exec</h3>
<div class="member-signature"><span class="modifiers">public</span>&nbsp;<span class="return-type"><a href="DesktopEntryBuilder.html" title="class in org.panteleyev.freedesktop.entry">DesktopEntryBuilder</a></span>&nbsp;<span class="element-name">exec</span><wbr><span class="parameters">(<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;exec)</span></div>
<div class="block">Program to execute, possibly with arguments. See the
 <a href="https://specifications.freedesktop.org/desktop-entry-spec/desktop-entry-spec-1.5.html#exec-variables">Exec key</a>
 for details on how this key works. The Exec key is required if DBusActivatable is not set to true. Even if
 DBusActivatable is true, Exec should be specified for compatibility with implementations that do not
 understand DBusActivatable.</div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>exec</code> - Exec value</dd>
<dt>Returns:</dt>
<dd>this</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="path(java.lang.String)">
<h3>path</h3>
<div class="member-signature"><span class="modifiers">public</span>&nbsp;<span class="return-type"><a href="DesktopEntryBuilder.html" title="class in org.panteleyev.freedesktop.entry">DesktopEntryBuilder</a></span>&nbsp;<span class="element-name">path</span><wbr><span class="parameters">(<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;path)</span></div>
<div class="block">If entry is of type Application, the working directory to run the program in.</div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>path</code> - Path value</dd>
<dt>Returns:</dt>
<dd>this</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="terminal(boolean)">
<h3>terminal</h3>
<div class="member-signature"><span class="modifiers">public</span>&nbsp;<span class="return-type"><a href="DesktopEntryBuilder.html" title="class in org.panteleyev.freedesktop.entry">DesktopEntryBuilder</a></span>&nbsp;<span class="element-name">terminal</span><wbr><span class="parameters">(boolean&nbsp;terminal)</span></div>
<div class="block">Whether the program runs in a terminal window.</div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>terminal</code> - Terminal value</dd>
<dt>Returns:</dt>
<dd>this</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="actions(java.util.List)">
<h3>actions</h3>
<div class="member-signature"><span class="modifiers">public</span>&nbsp;<span class="return-type"><a href="DesktopEntryBuilder.html" title="class in org.panteleyev.freedesktop.entry">DesktopEntryBuilder</a></span>&nbsp;<span class="element-name">actions</span><wbr><span class="parameters">(<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/List.html" title="class or interface in java.util" class="external-link">List</a>&lt;<a href="ApplicationAction.html" title="class in org.panteleyev.freedesktop.entry">ApplicationAction</a>&gt;&nbsp;actions)</span></div>
<div class="block">Identifiers for application actions. This can be used to tell the application to make a specific action,
 different from the default behavior. The
 <a href="https://specifications.freedesktop.org/desktop-entry-spec/desktop-entry-spec-1.5.html#extra-actions">Application actions</a>
 section describes how actions work.</div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>actions</code> - Application actions</dd>
<dt>Returns:</dt>
<dd>this</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="mimeType(java.util.List)">
<h3>mimeType</h3>
<div class="member-signature"><span class="modifiers">public</span>&nbsp;<span class="return-type"><a href="DesktopEntryBuilder.html" title="class in org.panteleyev.freedesktop.entry">DesktopEntryBuilder</a></span>&nbsp;<span class="element-name">mimeType</span><wbr><span class="parameters">(<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/List.html" title="class or interface in java.util" class="external-link">List</a>&lt;<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&gt;&nbsp;mimeType)</span></div>
<div class="block">The MIME type(s) supported by this application.</div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>mimeType</code> - MimeType value</dd>
<dt>Returns:</dt>
<dd>this</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="categories(java.util.List)">
<h3>categories</h3>
<div class="member-signature"><span class="modifiers">public</span>&nbsp;<span class="return-type"><a href="DesktopEntryBuilder.html" title="class in org.panteleyev.freedesktop.entry">DesktopEntryBuilder</a></span>&nbsp;<span class="element-name">categories</span><wbr><span class="parameters">(<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/List.html" title="class or interface in java.util" class="external-link">List</a>&lt;<a href="../menu/Category.html" title="enum class in org.panteleyev.freedesktop.menu">Category</a>&gt;&nbsp;categories)</span></div>
<div class="block">Categories in which the entry should be shown in a menu.</div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>categories</code> - Categories value</dd>
<dt>Returns:</dt>
<dd>this</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="interfaces(java.util.List)">
<h3>interfaces</h3>
<div class="member-signature"><span class="modifiers">public</span>&nbsp;<span class="return-type"><a href="DesktopEntryBuilder.html" title="class in org.panteleyev.freedesktop.entry">DesktopEntryBuilder</a></span>&nbsp;<span class="element-name">interfaces</span><wbr><span class="parameters">(<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/List.html" title="class or interface in java.util" class="external-link">List</a>&lt;<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&gt;&nbsp;interfaces)</span></div>
<div class="block">A list of interfaces that this application implements. By default, a desktop file implements no interfaces.
 See
 <a href="https://specifications.freedesktop.org/desktop-entry-spec/desktop-entry-spec-1.5.html#interfaces">Interfaces</a>
 for more information on how this works.</div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>interfaces</code> - translates to 'implements' entry</dd>
<dt>Returns:</dt>
<dd>this</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="keywords(java.util.List,java.lang.String)">
<h3>keywords</h3>
<div class="member-signature"><span class="modifiers">public</span>&nbsp;<span class="return-type"><a href="DesktopEntryBuilder.html" title="class in org.panteleyev.freedesktop.entry">DesktopEntryBuilder</a></span>&nbsp;<span class="element-name">keywords</span><wbr><span class="parameters">(<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/List.html" title="class or interface in java.util" class="external-link">List</a>&lt;<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&gt;&nbsp;keywords,
 <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;locale)</span></div>
<div class="block">A list of strings which may be used in addition to other metadata to describe this entry. This can be useful
 e.g. to facilitate searching through entries. The values are not meant for display, and should not be redundant
 with the values of Name or GenericName.</div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>keywords</code> - Keywords value</dd>
<dd><code>locale</code> - Locale string</dd>
<dt>Returns:</dt>
<dd>this</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="keywords(java.util.List)">
<h3>keywords</h3>
<div class="member-signature"><span class="modifiers">public</span>&nbsp;<span class="return-type"><a href="DesktopEntryBuilder.html" title="class in org.panteleyev.freedesktop.entry">DesktopEntryBuilder</a></span>&nbsp;<span class="element-name">keywords</span><wbr><span class="parameters">(<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/List.html" title="class or interface in java.util" class="external-link">List</a>&lt;<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&gt;&nbsp;keywords)</span></div>
<div class="block">A list of strings which may be used in addition to other metadata to describe this entry. This can be useful
 e.g. to facilitate searching through entries. The values are not meant for display, and should not be redundant
 with the values of Name or GenericName.</div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>keywords</code> - Keywords value for default Locale</dd>
<dt>Returns:</dt>
<dd>this</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="startupNotify(boolean)">
<h3>startupNotify</h3>
<div class="member-signature"><span class="modifiers">public</span>&nbsp;<span class="return-type"><a href="DesktopEntryBuilder.html" title="class in org.panteleyev.freedesktop.entry">DesktopEntryBuilder</a></span>&nbsp;<span class="element-name">startupNotify</span><wbr><span class="parameters">(boolean&nbsp;startupNotify)</span></div>
<div class="block">If true, it is KNOWN that the application will send a &quot;remove&quot; message when started with the
 DESKTOP_STARTUP_ID environment variable set. If false, it is KNOWN that the application does not work with
 startup notification at all (does not show any window, breaks even when using StartupWMClass, etc.). If
 absent, a reasonable handling is up to implementations (assuming false, using StartupWMClass, etc.). (See the
 <a href="https://www.freedesktop.org/wiki/Specifications/startup-notification-spec/">Startup Notification Protocol Specification</a>
 for more details).</div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>startupNotify</code> - StartupNotify value</dd>
<dt>Returns:</dt>
<dd>this</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="startupWmClass(java.lang.String)">
<h3>startupWmClass</h3>
<div class="member-signature"><span class="modifiers">public</span>&nbsp;<span class="return-type"><a href="DesktopEntryBuilder.html" title="class in org.panteleyev.freedesktop.entry">DesktopEntryBuilder</a></span>&nbsp;<span class="element-name">startupWmClass</span><wbr><span class="parameters">(<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;startupWmClass)</span></div>
<div class="block">If specified, it is known that the application will map at least one window with the given string as its WM
 class or WM name hint (see the
 <a href="https://www.freedesktop.org/wiki/Specifications/startup-notification-spec/">Startup Notification Protocol Specification</a>
 for more details).</div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>startupWmClass</code> - StartupWMClass value</dd>
<dt>Returns:</dt>
<dd>this</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="url(java.lang.String)">
<h3>url</h3>
<div class="member-signature"><span class="modifiers">public</span>&nbsp;<span class="return-type"><a href="DesktopEntryBuilder.html" title="class in org.panteleyev.freedesktop.entry">DesktopEntryBuilder</a></span>&nbsp;<span class="element-name">url</span><wbr><span class="parameters">(<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;url)</span></div>
<div class="block">If entry is <a href="DesktopEntryType.html#LINK"><code>DesktopEntryType.LINK</code></a> type, the URL to access.</div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>url</code> - URL value</dd>
<dt>Returns:</dt>
<dd>this</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="prefersNonDefaultGpu(boolean)">
<h3>prefersNonDefaultGpu</h3>
<div class="member-signature"><span class="modifiers">public</span>&nbsp;<span class="return-type"><a href="DesktopEntryBuilder.html" title="class in org.panteleyev.freedesktop.entry">DesktopEntryBuilder</a></span>&nbsp;<span class="element-name">prefersNonDefaultGpu</span><wbr><span class="parameters">(boolean&nbsp;prefersNonDefaultGpu)</span></div>
<div class="block">If true, the application prefers to be run on a more powerful discrete GPU if available, which we describe as
 &quot;a GPU other than the default one&quot; in this spec to avoid the need to define what a discrete GPU is and
 in which cases it might be considered more powerful than the default GPU. This key is only a hint and support
 might not be present depending on the implementation.</div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>prefersNonDefaultGpu</code> - PrefersNonDefaultGPU value</dd>
<dt>Returns:</dt>
<dd>this</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="singleMainWindow(boolean)">
<h3>singleMainWindow</h3>
<div class="member-signature"><span class="modifiers">public</span>&nbsp;<span class="return-type"><a href="DesktopEntryBuilder.html" title="class in org.panteleyev.freedesktop.entry">DesktopEntryBuilder</a></span>&nbsp;<span class="element-name">singleMainWindow</span><wbr><span class="parameters">(boolean&nbsp;singleMainWindow)</span></div>
<div class="block">If true, the application has a single main window, and does not support having an additional one opened. This
 key is used to signal to the implementation to avoid offering a UI to launch another window of the app. This
 key is only a hint and support might not be present depending on the implementation.</div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>singleMainWindow</code> - SingleMainWindow value</dd>
<dt>Returns:</dt>
<dd>this</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="customEntry(java.lang.String,java.lang.CharSequence)">
<h3>customEntry</h3>
<div class="member-signature"><span class="modifiers">public</span>&nbsp;<span class="return-type"><a href="DesktopEntryBuilder.html" title="class in org.panteleyev.freedesktop.entry">DesktopEntryBuilder</a></span>&nbsp;<span class="element-name">customEntry</span><wbr><span class="parameters">(<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;key,
 <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/CharSequence.html" title="class or interface in java.lang" class="external-link">CharSequence</a>&nbsp;value)</span></div>
<div class="block">Custom entry not defined in the specification.</div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>key</code> - key</dd>
<dd><code>value</code> - value</dd>
<dt>Returns:</dt>
<dd>this</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="build()">
<h3>build</h3>
<div class="member-signature"><span class="modifiers">public</span>&nbsp;<span class="return-type"><a href="DesktopEntry.html" title="class in org.panteleyev.freedesktop.entry">DesktopEntry</a></span>&nbsp;<span class="element-name">build</span>()</div>
<div class="block">Builds <a href="DesktopEntry.html" title="class in org.panteleyev.freedesktop.entry"><code>DesktopEntry</code></a> instance.</div>
<dl class="notes">
<dt>Returns:</dt>
<dd><a href="DesktopEntry.html" title="class in org.panteleyev.freedesktop.entry"><code>DesktopEntry</code></a> instance</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="localeString(java.lang.String,java.lang.String)">
<h3>localeString</h3>
<div class="member-signature"><span class="modifiers">public static</span>&nbsp;<span class="return-type"><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/CharSequence.html" title="class or interface in java.lang" class="external-link">CharSequence</a></span>&nbsp;<span class="element-name">localeString</span><wbr><span class="parameters">(<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;value,
 <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;locale)</span></div>
<div class="block">Creates string with locale.</div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>value</code> - string value</dd>
<dd><code>locale</code> - string locale</dd>
<dt>Returns:</dt>
<dd>string with locale</dd>
</dl>
</section>
</li>
</ul>
</section>
</li>
</ul>
</section>
<!-- ========= END OF CLASS DATA ========= -->
</main>
<footer role="contentinfo">
<hr>
<p class="legal-copy"><small>Copyright &copy; 2022-2024 Petr Panteleyev</small></p>
</footer>
</div>
</div>
</body>
</html>
